package com.ctshk.rpc.order.tour.req;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value="系列团游客收款收款保险", description="系列团游客收款收款保险")
public class SeriesOrderCollectionCollectionInsuranceItemReq implements Serializable {

    @ApiModelProperty(value = "游客ID")
    private Long touristId;

    @ApiModelProperty(value = "收款方式")
    private String collectionWay;

    @ApiModelProperty(value = "收款方式主数据ID")
    private Long collectionWayId;

    @ApiModelProperty(value = "付款方")
    private String payer;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "收款凭证数量")
    private Integer collectionVoucherNum;

    @ApiModelProperty(value = "收款凭证JSON")
    private String collectionVoucherJson;

    @ApiModelProperty(value = "收款凭证JSON")
    private List<String> collectionVoucherJsonList;

    public String getCollectionVoucherJson() {
        this.collectionVoucherJson = JSON.toJSONString(collectionVoucherJsonList);
        return collectionVoucherJson;
    }

}
